<template>
	<div>
		<div class="member-center-main">
			<div class="member-center-menu">
				<div class="info-block">
					<div class="playerid">{{info.name}}</div>
				</div>
				<div class="balance-info">
					<div class="currency">{{$t('indexTitle.title23')}}</div>
					<div class="balance">{{info.money||0}}</div>
				</div>
				<div class="nav-block">
					<div class="item" :class="tab == 0 ? 'active':''" @click="goNextPage('/mine')">
						<img src="../../assets/icons/gerenziliao.png" alt="" />
						<div class="label">{{$t('indexTitle.title24')}}</div>
					</div>
					<div class="item" :class="tab == 1 ? 'active':''" @click="goNextPage('/vipRebates')">
						<img src="../../assets/icons/vip.png" alt="" />
						<div class="label">{{$t('indexTitle.title321')}}</div>
					</div>
					<div class="item" :class="tab == 2 ? 'active':''" @click="goNextPage('/deposit')">
						<img src="../../assets/icons/chongzhi.png" alt="" />
						<div class="label">{{$t('indexTitle.title26')}}</div>
					</div>
					<div class="item" :class="tab == 3 ? 'active':''" @click="goNextPage('/withdraw')">
						<img src="../../assets/icons/tixian.png" alt="" />
						<div class="label">{{$t('indexTitle.title27')}}</div>
					</div>
					<!-- <div class="item" :class="tab == 4 ? 'active':''" @click="goNextPage('/affiliate')">
						<img src="../../assets/icons/tuiguangfenxiao.png" alt="" />
						<div class="label">{{$t('indexTitle.title28')}}</div>
					</div> -->
					<div class="item" :class="tab == 5 ? 'active':''" @click="goNextPage('/mission')">
						<img src="../../assets/icons/renwurizhi.png" alt="" />
						<div class="label">{{$t('indexTitle.title29')}}</div>
					</div>
					<div class="item" :class="tab == 6 ? 'active':''" @click="goNextPage('/promotions')">
						<img src="../../assets/icons/youhuizhongxin.png" alt="" />
						<div class="label">{{$t('indexTitle.title30')}}</div>
					</div>
					<div class="item" :class="tab == 7 ? 'active':''" @click="goNextPage('/game-history')">
						<img src="../../assets/icons/youxijilu.png" alt="" />
						<div class="label">{{$t('indexTitle.title31')}}</div>
					</div>
					<div class="item" :class="tab == 8 ? 'active':''" @click="goNextPage('/finan-history')">
						<img src="../../assets/icons/caiwujilu.png" alt="" />
						<div class="label">{{$t('indexTitle.title32')}}</div>
					</div>
					<div class="item" :class="tab == 9 ? 'active':''" @click="goNextPage('/personalMsg')">
						<img src="../../assets/icons/gonggaozhongxin.png" alt="" />
						<div class="label">{{$t('indexTitle.title33')}}</div>
					</div>
				</div>
			</div>
			<div class="member-center-content" v-if="tep == 0">
				<div class="deposit-list">
					<div class="title">{{$t('indexTitle.title73')}}</div>
					<div class="deposit-lists">
						<div class="item" v-for="(item,index) in type" :key="index"
							:class="[item.type == 1 ? 'item1':'',item.type == 2 ? 'item2':'',item.type == 4 ? 'item4':'']"
							@click="gorecharge(item)">
							<h3>{{item.name}}</h3>
							<div class="mc-collection-description" v-if="item.type == 1">
								{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.zsk_min||0}}
								{{$t('indexTitle.title290')}}{{systemconfig.zsk_max||0}}
							</div>
							<div class="mc-collection-description" v-if="item.type == 2">
								{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.bld_min||0}}
								{{$t('indexTitle.title290')}}{{systemconfig.bld_max||0}}
							</div>
							<div class="mc-collection-description" v-if="item.type == 3">
								{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.usdt_min||0}}
								{{$t('indexTitle.title290')}}{{systemconfig.usdt_max||0}}
							</div>
							<div class="mc-collection-description" v-if="item.type == 4">
								{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.yh_min||0}}
								{{$t('indexTitle.title290')}}{{systemconfig.yh_max||0}}
							</div>
							<!-- <small>{{item.name}}</small> -->
						</div>
					</div>
				</div>
				<div class="member-center-profile" v-if="tep == 0">
					<div class="promo-ads-title">
						<div class="title">{{$t('indexTitle.title74')}}</div>
					</div>
					<div class="nodata">
						<div class="no-data">
							<img src="../../assets/images/nodata.svg" alt="" />
							<div>{{$t('indexTitle.title75')}}</div>
						</div>
					</div>
				</div>
			</div>
			<div class="member-center-content" v-if="tep == 1">
				<div class="deposit-list">
					<div class="title-wrapper">
						<img @click="getNextPAGE(0)" class="left" src="../../assets/images/fanhuijiantou.png" alt="">
						<div class="title">{{selecttype.name}}</div>
					</div>
					<div class="mc-collection-opt-warpper">
						<div class="mc-collection-option">
							<div class="mc-collection-information">
								<img v-if="type == 1" class="icon" src="../../assets/images/zsk.webp" alt="" />
								<img v-if="type == 2" class="icon" src="../../assets/images/bld.png" alt="" />
								<img v-if="type == 3" class="icon" src="../../assets/images/usdt.webp" alt="" />
								<img v-if="type == 4" class="icon" src="../../assets/images/yinhangzhanghu.png"
									alt="" />
								<div class="mc-collection-content">
									<div class="mc-collection-basic">
										<div class="mc-collection-name" v-if="selecttype.type == 1">
											{{$t('indexTitle.title76')}}
										</div>
										<div class="mc-collection-name" v-if="selecttype.type == 2">
											{{$t('indexTitle.title77')}}
										</div>
										<div class="mc-collection-name" v-if="selecttype.type == 3">USDT</div>
										<div class="mc-collection-name" v-if="selecttype.type == 4">
											{{$t('indexTitle.title288')}}
										</div>
										<div class="mc-collection-description" v-if="selecttype.type == 1">
											{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.zsk_min||0}}
											{{$t('indexTitle.title290')}}{{systemconfig.zsk_max||0}}
										</div>
										<div class="mc-collection-description" v-if="selecttype.type == 2">
											{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.bld_min||0}}
											{{$t('indexTitle.title290')}}{{systemconfig.bld_max||0}}
										</div>
										<div class="mc-collection-description" v-if="selecttype.type == 3">
											{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.usdt_min||0}}
											{{$t('indexTitle.title290')}}{{systemconfig.usdt_max||0}}
										</div>
										<div class="mc-collection-description" v-if="selecttype.type == 4">
											{{$t('indexTitle.title291')}}{{$t('indexTitle.title289')}}{{systemconfig.yh_min||0}}
											{{$t('indexTitle.title290')}}{{systemconfig.yh_max||0}}
										</div>
										<!-- <div class="mc-collection-description">{{$t('indexTitle.title78')}}</div> -->
									</div>
									<div class="mc-collection-fee">
										<div class="mc-collection-description">{{$t('indexTitle.title79')}}:</div>
										<p class="mc-collection-description">{{$t('indexTitle.title80')}}</p>
									</div>
									<img v-if="showmore" @click="showmore = false" class="showmore"
										src="../../assets/images/top.png" alt="" />
									<img v-if="!showmore" @click="showmore = true" class="showmore"
										src="../../assets/images/down.png" alt="" />
								</div>
							</div>
							<div class="mc-collection-accordion" v-if="showmore">
								<div class="">
									<div class="mc-input-field" :class="{errorww:isShowThreess,error:blurnumstyle}">
										<div class="mc-input-base">
											<el-input v-model="num" @input="inputjianting(0)"
												:placeholder="$t('indexTitle.title81')"></el-input>
											<!-- <div class="mc-input-field-suffix">港元</div> -->
										</div>
									</div>
									<div v-if="blurnumstyle" class="tips1">
										<img src="../../assets/images/zhuyitow.png" alt="">
										{{tips}}
									</div>
									<div v-if="isShowThreess" class="tips1">{{messageText}}</div>
								</div>
								<!-- <div class="" v-if="selecttype.type == 1">
									<div class="mc-input-field" :class="{errorww:isShowThreess,error:blurpsdstyle}"
										style="margin-top: 10px;" v-if="selecttype.type == 1">
										<div class="mc-input-base">
											<el-input v-model="name" @input="inputjianting(1)"
												:placeholder="$t('indexTitle.title82')"></el-input>
										</div>
									</div>
									<div v-if="blurpsdstyle" class="tips1">
										<img src="../../assets/images/zhuyitow.png" alt="">
										{{tips1}}
									</div>
									<div v-if="isShowThreess" class="tips1">{{messageText}}</div>
								</div> -->
								<div class="" v-if="newRechargeActivityList.length>0">
									<div class="mc-form-item">
										<div class="mc-form-itemTow" v-for="(it,index) in newRechargeActivityList"
											:key="index">
											<el-radio v-model="activitId" :label="it.id" :disabled="it.radioDisabled">
												<div class="mc-form-itemTowText"
													:class="{mcFormItemTowText:it.radioDisabled}">
													<div class="dafdsfL">
														<p>{{it.title}}</p>
														<p>{{it.title}}</p>
														<p>{{it.type}}</p>
													</div>
													<div class="dafdsfR">
														<p>{{$t('indexTitle.title308')}}</p>
														<p>{{$t('indexTitle.title308')}}</p>
														<p>{{it.money}}</p>
													</div>
												</div>
											</el-radio>

										</div>
										<!-- @click="drawer = true"
										<div class="mc-input-field-label">{{$t('indexTitle.title83')}}</div>
										<div class="mc-input-base1">{{fanlitype.name}}</div>
										<img src="../../assets/images/add.png" alt=""> -->
									</div>
									<!-- <div class="mc-form-item" @click="drawer = true">
										<div class="mc-input-field-label">{{$t('indexTitle.title83')}}</div>
										<el-select class="mc-input-base2" v-model="fanlitypes"
											:placeholder="$t('indexTitle.title84')">
											<el-option v-for="(item,index) in fanli" :key="index" :label="item.name"
												:value="item.type">
											</el-option>
										</el-select>
									</div> -->
								</div>
								<el-button @click="changetep(2)">{{$t('indexTitle.title85')}}</el-button>
							</div>
						</div>
					</div>
				</div>
				<div class="member-center-profile">
					<div class="promo-ads-title">
						<div class="title">{{$t('indexTitle.title86')}}</div>
					</div>
					<div class="mc-deposit">
						<p>{{$t('indexTitle.title86')}}</p>
						<p>{{$t('indexTitle.title87')}}</p>
						<p>{{$t('indexTitle.title88')}}</p>
						<p>{{$t('indexTitle.title89')}}</p>
						<p>{{$t('indexTitle.title90')}}</p>
						<p>{{$t('indexTitle.title91')}}</p>
					</div>
				</div>
			</div>
			<div class="member-center-content" v-if="tep == 2">
				<div class="deposit-list">
					<div class="mc-collection-option">
						<div class="tep2title">
							{{$t('indexTitle.title92')}}：<span>$ {{amount}}</span>
							<font v-if="selecttype.type == 3">&nbsp;&nbsp;&nbsp;USDT <span>$ {{amount_show}}</span>
							</font>
						</div>
						<div class="tep2title" style="margin-top: 12px;font-size: 18px;">{{$t('indexTitle.title93')}}
						</div>
						<div class="flexs" v-if="selecttype.type == 1">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title94')}}：</div>
								<div class="consd">{{systemconfig.zsk_account}}</div>
							</div>
							<img @click="copyUrl(systemconfig.zsk_account)" src="../../assets/images/copy.png" alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 1">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title95')}}：</div>
								<div class="consd">{{systemconfig.zsk_name}}</div>
							</div>
							<img @click="copyUrl(systemconfig.zsk_name)" src="../../assets/images/copy.png" alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 2">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title96')}}：</div>
							</div>
							<img class="erweima" :src="baseUrl + systemconfig.bld_pic" alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 3">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title97')}}(TRC)：</div>
								<div class="consd">{{systemconfig.usdt_trc_name}}</div>
							</div>
							<img @click="copyUrl(systemconfig.usdt_trc_name)" src="../../assets/images/copy.png"
								alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 3">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title96')}}：</div>
							</div>
							<img class="erweima" :src="baseUrl + systemconfig.usdt_trc_pic" alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 4">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title295')}}：</div>
								<div class="consd">{{systemconfig.yhk_name}}</div>
							</div>
							<img @click="copyUrl(systemconfig.yhk_name)" src="../../assets/images/copy.png" alt="" />
						</div>
						<div class="flexs" v-if="selecttype.type == 4">
							<div style="display: flex;justify-content: flex-start;align-items: center;">
								<div>{{$t('indexTitle.title297')}}：</div>
								<div class="consd">{{systemconfig.yhk_account}}</div>
							</div>
							<img @click="copyUrl(systemconfig.yhk_account)" src="../../assets/images/copy.png" alt="" />
						</div>
						<div class="btns">
							<el-button @click="changetep(1)">{{$t('indexTitle.title98')}}</el-button>
							<el-button class="queren" @click="submit()">{{$t('indexTitle.title99')}}</el-button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="jiazaidonghua" v-if="isloadingTowShow">
			<img src="../../assets/img/loading-ani.svg" alt="" />
		</div>
		<loadingFour :msgText="msgTextTow" :isShowCloseBot="isShowCloseBot" v-if="isShowLoadingTeow"
			@closeGuanbiTow="closeGuanbi"></loadingFour>
	</div>
</template>

<script>
	import {
		userinfo,
		rechargetype,
		fanlitype,
		recharge,
		getsystemconfig,
		newRechargeActivity
	} from "../../utils/api.js"
	import loadingFour from '../../components/loadingFour.vue';
	export default {

		data() {
			return {
				tab: 2,

				info: [],
				type: [],

				tep: 0,
				selecttype: [],
				showmore: true,
				num: '',
				name: '',

				fanli: [],
				fanlitypes: 0,
				systemconfig: [],
				amount: 0,
				amoutshow: 0,
				xiaoshu: 0,
				baseUrl: 'http://43.198.233.28/',

				isShowThreess: false,
				messageText: "",
				blurnumstyle: false,
				tips: '',
				blurpsdstyle: false,
				tips1: '',
				activitId: '',
				newRechargeActivityList: [],
				msgTextTow: "",
				isShowLoadingTeow: false,
				isShowCloseBot: false,
				isloadingTowShow: false,
			}
		},
		components: {
			loadingFour
		},
		mounted() {
			this.info = JSON.parse(localStorage.getItem('userInfo'))
			// this.getuserinfo()
			this.getrechargetype()
			this.getfanli()
			this.getsystem()
		},

		methods: {
			closeGuanbi(e) {
				this.isShowLoadingTeow = false;
			},
			getuserinfo() {
				userinfo().then((res) => {
					if (res.status.errorCode == 0) {
						localStorage.setItem('userInfo', JSON.stringify(res.data))
						this.info = JSON.parse(localStorage.getItem('userInfo'))
						this.$emit('USERInfo', JSON.stringify(res.data))
						this.$router.push({
							path: '/promotion',
							query: {
								title: 0
							}
						});
					} else if (res.status.errorCode == 401) {
						this.$emit('getTokenNum', false)
						console.log('401')
					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
						this.isShowCloseBot = false;
						setTimeout(() => {
							this.isShowLoadingTeow = false;
						}, 2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
					this.isloadingTowShow = false;
				}).catch((err) => {
					this.isloadingTowShow = false;
					console.log(err, 'err')
				});
			},
			getrechargetype() {
				rechargetype().then((res) => {
					if (res.status.errorCode == 0) {
						this.type = res.data
					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
						this.isShowCloseBot = false;
						setTimeout(() => {
							this.isShowLoadingTeow = false;
						}, 2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
				}).catch((err) => {
					console.log(err, 'err')
				});
			},
			getfanli() {
				fanlitype().then((res) => {
					if (res.status.errorCode == 0) {
						this.fanli = res.data
						this.fanlitypes = res.data[0].type
					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
						this.isShowCloseBot = false;
						setTimeout(() => {
							this.isShowLoadingTeow = false;
						}, 2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
				}).catch((err) => {
					console.log(err, 'err')
				});
			},
			getNextPAGE(num) {
				this.tep = num;
				this.blurpsdstyle = false;
				this.blurnumstyle = false;
				this.tips = '';
				this.tips1 = '';
				this.isShowThreess = false;
				this.messageText = '';
			},
			getsystem() {
				getsystemconfig().then((res) => {
					if (res.status.errorCode == 0) {
						this.systemconfig = res.data
					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
						this.isShowCloseBot = false;
						setTimeout(() => {
							this.isShowLoadingTeow = false;
						}, 2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
				}).catch((err) => {
					console.log(err, 'err')
				});
			},
			inputjianting(num) {
				if (num == 0) {
					if (!this.num) {
						this.newRechargeActivityList.forEach((item, index) => {
							let numberPrice = parseFloat(this.num + '.00')
							console.log(numberPrice, item.money);
							if (numberPrice < item.money) {
								item.radioDisabled = true;
							} else if (numberPrice > item.money || numberPrice == item.money) {
								item.radioDisabled = false;
							}
						})
						this.activitId = ''
						this.blurnumstyle = true;
						this.tips = this.$t('indexTitle.title81')
					} else {
						this.newRechargeActivityList.forEach((item, index) => {
							let numberPrice = parseFloat(this.num + '.00')
							console.log(numberPrice, item.money);
							if (numberPrice < item.money) {
								item.radioDisabled = true;
								this.activitId = ''
							} else if (numberPrice > item.money || numberPrice == item.money) {
								item.radioDisabled = false;
							}
						})
						this.blurnumstyle = false;
						this.isShowThreess = false;
						this.messageText = '';
					}
				}
				if (num == 1) {
					if (!this.name) {
						this.blurpsdstyle = true;
						this.tips1 = this.$t('indexTitle.title82')
					} else {
						this.blurpsdstyle = false;
						this.isShowThreess = false;
						this.messageText = '';
					}
				}
			},
			gorecharge(e) {
				this.tep = 1;
				this.selecttype = e;
				console.log(this.selecttype);
				this.newRechargeActivityList = []
				this.getnewRechargeActivity()
			},
			getnewRechargeActivity() {
				let data = {
					"type": this.selecttype.type
				}
				newRechargeActivity(data).then((res) => {
					if (res.status.errorCode == 0) {
						this.newRechargeActivityList = res.data;
						this.newRechargeActivityList.forEach((item, index) => {
							console.log(item);
							item.radioDisabled = false;
							if (this.num < item.money) {
								item.radioDisabled = true;
							} else {
								item.radioDisabled = false;
							}
						})

					} else {
						// this.$message.error(res.status.msg);
						this.msgTextTow = res.status.msg;
						this.isShowLoadingTeow = true;
						this.isShowCloseBot = false;
						setTimeout(() => {
							this.isShowLoadingTeow = false;
						}, 2000)
						// this.$message({
						// 	showClose: true,
						// 	message: res.status.msg,
						// 	type: 'error'
						// });
					}
				}).catch((err) => {
					console.log(err, 'err')
				});
			},
			changetep(e) {
				console.log(e);
				if (e == 2) {
					this.blurpsdstyle = false;
					this.blurnumstyle = false;
					this.tips = '';
					this.tips1 = '';
					if (!this.num) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title81')
						// this.$message.error('请输入充值金额');
						return false
					}
					if (this.num && this.selecttype.type == 1 && this.num < this.systemconfig.zsk_min) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title292') + this.systemconfig.zsk_min
						// this.$message.error('充值额度最低');
						return false
					}
					if (this.num && this.selecttype.type == 1 && this.num > this.systemconfig.zsk_max) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title293') + this.systemconfig.zsk_max
						// this.$message.error('充值额度最高');
						return false
					}
					if (this.num && this.selecttype.type == 2 && this.num < this.systemconfig.bld_min) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title292') + this.systemconfig.bld_min
						// this.$message.error('充值额度最低');
						return false
					}
					if (this.num && this.selecttype.type == 2 && this.num > this.systemconfig.bld_max) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title293') + this.systemconfig.bld_max
						// this.$message.error('充值额度最高');
						return false
					}
					if (this.num && this.selecttype.type == 3 && this.num < this.systemconfig.usdt_min) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title292') + this.systemconfig.usdt_min
						// this.$message.error('充值额度最低');
						return false
					}
					if (this.num && this.selecttype.type == 3 && this.num > this.systemconfig.usdt_max) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title293') + this.systemconfig.usdt_max
						// this.$message.error('充值额度最高');
						return false
					}
					if (this.num && this.selecttype.type == 4 && this.num < this.systemconfig.yh_min) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title292') + this.systemconfig.yh_min
						// this.$message.error('充值额度最低');
						return false
					}
					if (this.num && this.selecttype.type == 4 && this.num > this.systemconfig.yh_max) {
						this.blurnumstyle = true
						this.tips = this.$t('indexTitle.title293') + this.systemconfig.yh_max
						// this.$message.error('充值额度最高');
						return false
					}
					// if (this.selecttype.type == 1) {
					// 	if (!this.name) {
					// 		this.blurpsdstyle = true
					// 		this.tips1 = this.$t('indexTitle.title82')
					// 		// this.$message.error('请输入付款姓名');
					// 		return false
					// 	}
					// }
					this.xiaoshu = parseInt(Math.random() * 40, 10);
					this.amount = Number(this.num) + Number(this.xiaoshu / 100);
					this.amount_show = (this.amount / this.systemconfig.usdt_lv).toFixed(2);
				} else if (e == 1) {
					this.num = null;
					this.amount = 0;
				}
				this.tep = e
			},
			submit() {
				let that = this;
				this.isloadingTowShow = true;
				this.isShowThreess = false;
				this.messageText = '';
				let xiao = 0;
				if (this.xiaoshu < 10) {
					xiao = '0' + this.xiaoshu;
				} else {
					xiao = this.xiaoshu;
				}
				let data = {
					type: this.selecttype.type,
					account: this.name,
					money: this.num,
					activit_id: this.activitId,
					// fanli: this.fanlitypes,
					xiaoshu: xiao
				}
				recharge(data).then((res) => {
					if (res.status.errorCode == 0) {
						// this.$message.success(res.status.msg);
						that.getuserinfo()
					} else {
						this.tep = 1;
						this.isloadingTowShow = false;
						this.isShowThreess = true;
						this.messageText = res.status.msg;
						// this.$message.error(res.status.msg);
					}
				}).catch((err) => {
					this.isloadingTowShow = false;
					console.log(err, 'err')
				});
			},
			copyUrl(e) {
				let url = e
				let domInput = document.createElement('input');
				domInput.value = url;
				document.body.appendChild(domInput); // 添加input节点
				domInput.select(); // 选择对象;
				document.execCommand("Copy"); // 执行浏览器复制命令
				// this.$message.success(this.$t('indexTitle.title100'));
				this.msgTextTow = this.$t('indexTitle.title100');
				this.isShowLoadingTeow = true;
				this.isShowCloseBot = true;
				setTimeout(() => {
					this.isShowLoadingTeow = false;
				}, 2000)
				// this.$message({
				// 	showClose: true,
				// 	message: this.$t('indexTitle.title100'),
				// 	type: 'success'
				// });
				domInput.remove()
			},
			goBack() {
				this.$router.go(-1)
			},
			goNextPage(page, title) {
				this.$router.push({
					path: page,
					query: {
						title: title
					}
				});
			}
		}
	}
</script>

<style scoped>
	* {
		box-sizing: border-box;
		margin: 0;
	}

	.jiazaidonghua {
		height: 100px;
		width: 100px;
		background-color: #313131;
		position: absolute;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 10px;
	}

	.jiazaidonghua img {
		height: 45px;
		width: 45px;
	}

	.member-center-main {
		color: #545658;
		display: flex;
		justify-content: center;
		margin: 0 auto;
		max-width: 1280px;
		padding: 20px 0;
		width: 100%;
	}

	.member-center-menu {
		overflow: hidden;
		width: 220px;
	}

	.info-block {
		align-items: center;
		border-bottom: 1px solid #e9e9e9;
		display: flex;
		padding: 30px 15px 15px;
	}

	.playerid {
		font-size: 22px;
		font-weight: 600;
		word-break: break-all;
	}

	.balance-info {
		align-items: flex-end;
		border-bottom: 1px solid #e9e9e9;
		display: flex;
		justify-content: space-between;
		padding: 15px;
	}

	.currency {
		padding-right: 8px;
	}

	.balance {
		font-size: 18px;
		font-weight: 500;
	}

	.nav-block {
		align-items: center;
		display: flex;
		flex-direction: column;
	}

	.item {
		align-items: center;
		box-sizing: border-box;
		color: #939698;
		cursor: pointer;
		display: flex;
		height: 60px;
		line-height: 1.4;
		padding: 0 15px;
		position: relative;
		transition: .3s ease;
		width: 100%;
	}

	.item.active {
		color: #5235ff;
	}

	.item:hover {
		color: #5235ff;
	}

	.item img {
		width: 35px;
		height: 35px;
		margin-right: 12px;
	}

	.item .label {
		font-size: 16px;
		font-weight: 500;
		line-height: 1.2;
	}

	.tips1 {
		margin-top: 10px;
		color: #e94951;
		font-size: 13px;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		text-align: right;
	}

	.tips img,
	.tips1 img {
		width: 15px;
		height: 15px;
		margin-right: 5px;
	}

	.member-center-content {
		background: #f9f9f9;
		border-radius: 10px;
		box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15);
		display: flex;
		justify-content: space-between;
		min-height: 700px;
		overflow: hidden;
		position: relative;
		width: calc(100% - 220px);
	}

	.deposit-list {
		padding: 24px;
		width: 50%;
		position: relative;
	}

	.deposit-list .title {
		font-size: 19px;
		font-weight: 600;
		line-height: 24px;
		margin-bottom: 20px;
	}

	.deposit-lists {
		display: flex;
		flex-wrap: wrap;
		margin: -10px 0 10px -10px;
	}

	.deposit-lists .item {
		background: #fafafc;
		border: 1px solid #ececec;
		border-radius: 5px;
		cursor: pointer;
		display: flex;
		flex: 0 0 calc(50% - 10px);
		flex-direction: column;
		font-size: 12px;
		align-items: flex-start;
		justify-content: center;
		margin: 10px 0 0 10px;
		min-height: 66px;
		padding: 5px 10px 5px 60px;
		position: relative;
		transition: .2s ease;
		word-break: break-word;
	}

	.deposit-lists .item::before {
		background: url('../../assets/images/usdt.webp') 50%/contain no-repeat;
		content: " ";
		font-family: iconmps !important;
		font-size: 35px;
		height: 36px;
		left: 10px;
		position: absolute;
		text-align: center;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	.deposit-lists .item1::before {
		background: url('../../assets/images/zsk.webp') 50%/contain no-repeat;
		content: " ";
		font-family: iconmps !important;
		font-size: 35px;
		height: 36px;
		left: 10px;
		position: absolute;
		text-align: center;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	.deposit-lists .item2::before {
		background: url('../../assets/images/bld.png') 50%/contain no-repeat;
		content: " ";
		font-family: iconmps !important;
		font-size: 35px;
		height: 36px;
		left: 10px;
		position: absolute;
		text-align: center;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	.deposit-lists .item4::before {
		background: url('../../assets/images/yinhangzhanghu.png') 50%/contain no-repeat;
		content: " ";
		font-family: iconmps !important;
		font-size: 35px;
		height: 36px;
		left: 10px;
		position: absolute;
		text-align: center;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	h3 {
		width: 100%;
		text-align: left;
		color: #545658;
		font-size: 15px;
		font-weight: 400;
		margin-bottom: 5px;
	}

	small {
		width: 100%;
		text-align: left;
		color: #939698;
		font-size: 11px;
		font-weight: 300;
		letter-spacing: 1px;
		line-height: 14px;
		text-transform: uppercase;
	}

	.member-center-profile {
		padding: 24px;
		width: 50%;
		position: relative;
	}

	.member-center-profile .title {
		color: #545658;
		font-size: 19px;
		font-weight: 600;
		line-height: 24px;
		margin-bottom: 20px;
	}

	.promo-ads-title {
		display: flex;
		justify-content: space-between;
		margin-bottom: 10px;
	}

	.nodata {
		height: 700px;
		overflow: auto;
	}

	.no-data {
		align-items: center;
		color: #545658;
		display: flex;
		flex-direction: column;
		margin-top: 150px;
	}

	.no-data img {
		width: 50%;
	}

	.title-wrapper {
		align-items: center;
		display: flex;
	}

	.title-wrapper .left {
		color: #545658;
		margin-right: 10px;
		width: 22px;
		height: 22px;
		cursor: pointer;
	}

	.title-wrapper .title {
		font-size: 19px;
		font-weight: 600;
		line-height: 24px;
		color: #545658;
		margin-bottom: 0;
	}

	.mc-collection-opt-warpper {
		max-height: 600px;
		overflow: auto;
	}

	.mc-collection-option {
		background-color: #fafafc;
		border: 1px solid #ececec;
		border-radius: 5px;
		margin: 10px 0 0;
		padding: 15px 10px;
		position: relative;
	}

	.mc-collection-information {
		cursor: pointer;
		display: flex;
	}

	.icon {
		width: 36px;
		height: 36px;
	}

	.mc-collection-content {
		align-items: center;
		display: flex;
		flex-grow: 1;
		margin: 0 5px;
	}

	.mc-collection-basic {
		flex-grow: 1;
	}

	.mc-collection-name {
		color: #545658;
		font-size: 14px;
		font-weight: 500;
		line-height: 18px;
		margin-bottom: 5px;
	}

	.mc-collection-description {
		color: #939698;
		font-size: 10px;
		line-height: 14px;
	}

	.mc-collection-fee {
		text-align: right;
	}

	.showmore {
		width: 18px;
		height: 18px;
		margin-left: 4px;
	}

	.mc-collection-accordion {
		margin-top: 20px;
	}

	.mc-input-field {
		background-color: #fff;
		border: 1px solid #ececec;
		border-radius: 5px;
		display: block;
		min-height: 54px;
		position: relative;
		transition: .8s;
	}

	.mc-input-base {
		background-color: transparent;
		color: #545658;
		display: flex;
		font-size: 16px;
		height: 52px;
		padding: 0 15px;
		position: absolute;
		top: 0;
		width: 100%;
	}

	/deep/ .el-input__inner {
		background: 0 0;
		border: none;
		color: #545658;
		flex: 1 100%;
		font-size: 14px;
		height: 100%;
		padding: 0;
	}

	.error {
		border: 1px solid #e94951;
	}

	.errorww {
		border: 1px solid #e94951;
	}

	.mc-input-field-suffix {
		align-items: center;
		color: #939698;
		display: flex;
		flex: 1 0 90px;
		justify-content: flex-end;
	}

	.mc-input-amount-field {
		border-top: 1px solid #e9e9e9;
		margin-top: 54px;
		padding: 5px 15px 0;
		padding-bottom: 10px;
		color: #a0a3a5;
		font-size: 12px;
	}

	.mc-form-item {
		margin-top: 10px;
		background: #fff;
		border: 1px solid #ececec;
		border-radius: 5px;
		display: block;
		min-height: 54px;
		position: relative;
		transition: .8s;
	}

	.mc-form-item img {
		position: absolute;
		right: 16px;
		top: 35%;
		width: 18px;
		height: 18px;
	}

	/deep/.el-radio {
		display: flex;
		width: 100%;
		padding: 10px;
	}

	.mc-form-itemTow {
		width: 100%;
		display: flex;
	}

	.mc-form-itemTowText {
		width: 100%;
		display: flex;
		justify-content: space-between;
	}

	.dafdsfR p:first-child {
		font-size: 14px;
		color: transparent;
	}

	.dafdsfR p:nth-child(2),
	.dafdsfR p:nth-child(3) {
		font-size: 12px;
		margin-top: 7px;
		color: #ccc;
		text-align: right;
	}

	/deep/.el-radio__input.is-disabled+span.el-radio__label {
		display: block;
		width: 100%;
	}

	/deep/.el-radio__label {
		width: 100%;
	}

	/deep/.el-radio__input.is-checked .el-radio__inner {
		border-color: #7240ff;
		background: #7240ff;
	}

	.dafdsfL p:first-child {
		font-size: 14px;
		color: #333;
	}

	.dafdsfL p:nth-child(2),
	.dafdsfL p:nth-child(3) {
		font-size: 12px;
		margin-top: 7px;
		color: #ccc;
	}

	.mcFormItemTowText {
		opacity: 0.5;
	}


	.mc-input-field-label {
		font-size: 10px;
		top: 8px;
		color: #939698;
		padding-left: 15px;
		position: absolute;
		transition: .2s;
	}

	/deep/ .el-button {
		color: #5235ff;
		background-color: #fff;
		border: 1px solid #e9e9e9;
		border-color: #5235ff;
		border-radius: 5px;
		font-size: 14px;
		margin-top: 5px;
		min-height: 32px;
		height: 44px;
		width: 100%;
	}

	/deep/ .mc-collection-accordion .el-button {
		color: #fff;
		cursor: pointer;
		font-size: 16px;
		font-stretch: normal;
		font-style: normal;
		font-weight: 300;
		height: 44px;
		background-color: #7240ff;
		border-radius: 5px;
		margin-top: 10px;
		width: 100%;
	}

	.mc-input-base2 {
		box-shadow: none;
		font-size: 14px;
		height: 28px;
		top: 24px;
		position: absolute;
		width: 100%;
		background-color: transparent;
		color: #545658;
		display: flex;
	}

	/deep/ .mc-input-base2 input {
		border: 0;
		height: 28px;
		-webkit-appearance: none;
		background-color: #FFF;
		background-image: none;
		border-radius: 4px;
		box-sizing: border-box;
		color: #606266;
		display: inline-block;
		line-height: 40px;
		outline: 0;
		padding: 0 15px;
		transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
		width: 100%;
	}

	/deep/ .mc-input-base2 .el-input__suffix {
		top: -17px;
		height: 14px;
	}

	/deep/ .mc-input-base2 .el-input .el-select__caret {
		color: #5235ff;
		font-size: 16px;
	}

	/deep/ .mc-input-base2 .el-input__icon {
		height: fit-content;
	}

	.tep2title {
		text-align: center;
		font-size: 14px;
		color: #545658;
	}

	.tep2title span {
		font-size: 18px;
		font-weight: bold;
	}

	.flexs {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 14px;
		color: #545658;
		margin-top: 20px;
	}

	.flexs .consd {
		flex: 1;
		font-size: 16px;
		font-weight: bold;
		word-break: break-all;
	}

	.flexs img {
		width: 18px;
		height: 18px;
		cursor: pointer;
	}

	.bankBoxs {
		margin-left: 20px;
	}

	.bankBoxs div {
		margin-top: 5px;
	}

	.btns {
		margin-top: 30px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.queren {
		color: #fff;
		cursor: pointer;
		font-size: 16px;
		font-stretch: normal;
		font-style: normal;
		font-weight: 300;
		height: 44px;
		background-color: #7240ff;
		border-radius: 5px;
		width: 100%;
	}

	.flexs img.erweima {
		width: 200px;
		height: auto;
	}

	.mc-deposit {
		margin-top: 24px;
		max-height: 700px;
		overflow-y: auto;
		padding: 5px;
		word-wrap: break-word;
	}

	.mc-deposit p {
		word-wrap: break-word;
		margin: 1em 0;
	}
</style>